/*
 * @Descripttion: 
 * @version: 
 * @Author: jiuguo.qin
 * @Date: 2020-02-18 16:31:41
 * @LastEditors: jiuguo.qin
 * @LastEditTime: 2020-02-23 17:11:04
 */

#include "wrk_auxiliary.h"
#include "wrk_logger.h"
#include <uuid/uuid.h>

int test_add(int a, int b) {
    return a+b;
}

const char *get_uuid(int flag)
{
    uuid_t uu;
    char buf[64];
    uuid_generate(uu);

    switch (flag)
    {
    case 0:
        uuid_unparse(uu, buf);
        break;
    case 1:
        uuid_unparse_upper(uu, buf);
        break;
    default:
        uuid_unparse_lower(uu,buf);
        break;
    }
    
    return std::string(buf).c_str();
}